home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Code Resources / Meter Control / Meter.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-26  |  1.1 KB  |  32 lines  |  [TEXT/KAHL]

  1. /**************************************************************************
  2. ** Meter.h
  3. **
  4. ** Header file for the analog meter-style dial control.
  5. **
  6. ** Copyright © 1992, Brent Burton
  7. **
  8. ** Permission is granted to freely copy, use, and distribute this
  9. ** code for commercial or non-commercial purposes.  If this code
  10. ** is used, it is used with the understanding that a credit message
  11. ** must appear in the software that uses this code.  I.e., give credit
  12. ** where credit is due.  Thanks!
  13. ***************************************************************************/
  14.  
  15.  
  16. /*************
  17. ** Note: inTurnUp and inTurnDown are oppositely named what the
  18. ** standard inPageUp/inPageDown values are. (I.e., a scroll
  19. ** inPageUp is 22, and inPageDown is 23.)
  20. ** The numbering difference is because a meter works in an
  21. ** opposite manner than a scroll bar.
  22. **************/
  23. #ifndef METER_H
  24. #define METER_H
  25.  
  26. #define inNeedle    129        /* same number as scroll bars' thumb */
  27. #define inTurnUp    23        /* turn meter's value up (clockwise) */
  28. #define inTurnDown    22        /* turn meter's value down (CCW) */
  29.  
  30. #define kMeterPict    -10176    /* Owned resource ID for dial's pict. */
  31.  
  32. #endif